package com.example.shop.response;

import javax.xml.bind.annotation.adapters.XmlAdapter;

public class ToStringFormatter extends XmlAdapter<String, Integer> {
    public ToStringFormatter() {
    }

    public Integer unmarshal(String v) throws Exception {
        throw new UnsupportedOperationException();
    }

    public String marshal(Integer v) throws Exception {
        return null == v ? null : String.valueOf(v);
    }
}
